package com.googlecode.ozonbooksfinder.matefinder.business
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	
	import mx.collections.ArrayCollection;

	public class FavoritesManager extends EventDispatcher
	{
		
		private var _favorites:ArrayCollection;
		[Bindable(event="favoritesChange")]
		public function get favorites ():ArrayCollection
		{
			return _favorites;
		}
		
		public function setFavorites (favorites:ArrayCollection):void
		{
			if (favorites != _favorites)
			{
				_favorites = favorites;
				dispatchEvent (new Event ("favoritesChange"));
			}
		}
	}
}